package com.example.common.component;

/**
 * @author yaojianfeng
 */
public class MyException extends Exception{
    private String msg;
    private int status;


    public MyException(String msg, int status) {
        this.msg = msg;
        this.status = status;
    }

    public MyException(String message, String msg, int status) {
        super(message);
        this.msg = msg;
        this.status = status;
    }

    public MyException(String message, Throwable cause, String msg, int status) {
        super(message, cause);
        this.msg = msg;
        this.status = status;
    }

    public MyException(Throwable cause, String msg, int status) {
        super(cause);
        this.msg = msg;
        this.status = status;
    }

    public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String msg, int status) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.msg = msg;
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
